Post

Replies

Boosts

Views

Activity

Viewbased stereoscopic drawing
Is there a way to render stereoscopic (left/right) images in a 2d plane that resides in a swiftUI view? I know this is possible in realityKit shaders, and in immersive metal composits, but is it possible via swiftUI shaders, CAMetalLayer, etc? I'd like to draw a 2d window with standard UI chrome (resize, move etc) that displays stereoscopic content on the flat plane of the window.
1
0
640
Feb ’26
install_name_tool failing on 3rd party dylib
Hello, A vendor recently updated their SDK and I'm trying to update my project to use the new dylib. I'm not able to use the dylib out of the box due to linking problems, so fired up install_name_tool to update the id to properly work in my situation (similar thing worked with their prior release.) However, with this build I'm getting the error: % install_name_tool -id @rpath/libblahblahblah.dylib libblahblahblah.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: fatal error: file not in an order that can be processed (link edit information does not fill the __LINKEDIT segment): libblahblahblah.dylib (for architecture x86_64) Google isn't returning much beyond explanations of the macho file layout. Is there a simple way to alter the dylib locally to address this? Is there something I can suggest the vendor does upstream? Thanks, mike
5
0
3.9k
Apr ’23
Want to manually validate my app's bundle against code signing
I'm building a developer ID notarized app which relies on a file within my resource folder for licensing, in such a way that I don't need to obfuscate it, but I would like to block casual users from altering it. This seems like a perfect job for code signing. I tried running the following code to check my currently running executable's signing status, but it passes immediately after notarizing, but also after I alter files in my resource folder or the info.plist. pid_t pid = getpid(); SecCodeRef code = nil; CFNumberRef pidnumber = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &pid); CFDictionaryRef piddict = CFDictionaryCreate(kCFAllocatorDefault, (const void**)&kSecGuestAttributePid, (const void**)&pidnumber, 1, nil, nil); if(!SecCodeCopyGuestWithAttributes(nil, piddict, kSecCSDefaultFlags, &code)) {          is_valid = SecCodeCheckValidity(code, kSecCSDefaultFlags, 0); } However, from the command line I get the following: % codesign --verify /Users/mike/Desktop/Test.app /Users/mike/Desktop/Test.app: a sealed resource is missing or invalid How can I configure things to get a fail state from SecCodeCheckValidity? Thanks, mike
1
0
786
Oct ’22
Viewbased stereoscopic drawing
Is there a way to render stereoscopic (left/right) images in a 2d plane that resides in a swiftUI view? I know this is possible in realityKit shaders, and in immersive metal composits, but is it possible via swiftUI shaders, CAMetalLayer, etc? I'd like to draw a 2d window with standard UI chrome (resize, move etc) that displays stereoscopic content on the flat plane of the window.
Replies
1
Boosts
0
Views
640
Activity
Feb ’26
RealityKit VideoMaterial not respecting compositing instructions
Im trying to programmatically alter a a video frame before applying it to geometry using VideoMaterial. What I'm finding is that the output appears as though no videoCompositor was applied to the playerItem. Is this expected behavior? Is there a work around besides using an ExportSession to bounce the movie to disk?
Replies
9
Boosts
0
Views
2k
Activity
Feb ’24
enabling cpp interoperability causing compiler errors
If I switch from objective c to objective c++ interoperability in Xcode 15, I'm getting errors when trying to use NSEvent.ModifierFlags ("Expected a type"). I can't seem to find a workaround. https://forums.swift.org/t/expected-a-type-error-on-appkit-nsevent-modifierflags-enum/67557
Replies
0
Boosts
0
Views
459
Activity
Sep ’23
install_name_tool failing on 3rd party dylib
Hello, A vendor recently updated their SDK and I'm trying to update my project to use the new dylib. I'm not able to use the dylib out of the box due to linking problems, so fired up install_name_tool to update the id to properly work in my situation (similar thing worked with their prior release.) However, with this build I'm getting the error: % install_name_tool -id @rpath/libblahblahblah.dylib libblahblahblah.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: fatal error: file not in an order that can be processed (link edit information does not fill the __LINKEDIT segment): libblahblahblah.dylib (for architecture x86_64) Google isn't returning much beyond explanations of the macho file layout. Is there a simple way to alter the dylib locally to address this? Is there something I can suggest the vendor does upstream? Thanks, mike
Replies
5
Boosts
0
Views
3.9k
Activity
Apr ’23
Want to manually validate my app's bundle against code signing
I'm building a developer ID notarized app which relies on a file within my resource folder for licensing, in such a way that I don't need to obfuscate it, but I would like to block casual users from altering it. This seems like a perfect job for code signing. I tried running the following code to check my currently running executable's signing status, but it passes immediately after notarizing, but also after I alter files in my resource folder or the info.plist. pid_t pid = getpid(); SecCodeRef code = nil; CFNumberRef pidnumber = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &pid); CFDictionaryRef piddict = CFDictionaryCreate(kCFAllocatorDefault, (const void**)&kSecGuestAttributePid, (const void**)&pidnumber, 1, nil, nil); if(!SecCodeCopyGuestWithAttributes(nil, piddict, kSecCSDefaultFlags, &code)) {          is_valid = SecCodeCheckValidity(code, kSecCSDefaultFlags, 0); } However, from the command line I get the following: % codesign --verify /Users/mike/Desktop/Test.app /Users/mike/Desktop/Test.app: a sealed resource is missing or invalid How can I configure things to get a fail state from SecCodeCheckValidity? Thanks, mike
Replies
1
Boosts
0
Views
786
Activity
Oct ’22
WWDC Lab reschedule?
I know this is a long shot, but I just found out I wont be available at 2:40 today for my lab appointment in the HDR and EDR lab. Is there a way to request an earlier time (assuming there's availability)?
Replies
1
Boosts
0
Views
903
Activity
Jun ’21